
import {simpleServer} from '@/tools/servers'

/**
 * 商铺审核
 */
export class ShopsReviewService {
    // 分页查询列表
    static findShopsReviews (pageDTO) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.findShopsReviews,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/review/ShopsReview/findShopsReviews', body);
    }


    //根据商铺审核Id查询商铺审核
    static findShopsReview (shopsReviewId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findShopsReview ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/ShopsReview/findShopsReview',body);
    }

    //为了编辑,根据商铺审核Id查询商铺审核
    static findShopsReviewForEdit(shopsReviewId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findShopsReviewForEdit ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/ShopsReview/findShopsReviewForEdit',body);
    }

    //为了查看,根据商铺审核Id查询商铺审核，所有外键字段的名称都已加载
    static findShopsReviewForView(shopsReviewId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findShopsReviewForView ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/ShopsReview/findShopsReviewForView',body);
    }

    //创建新的商铺审核
    static createShopsReview() {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.createShopsReview,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/ShopsReview/createShopsReview',body);
    }

    //保存商铺审核
    static saveShopsReview(shopsReview) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.saveShopsReview,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/review/ShopsReview/saveShopsReview', body);
    }

    //编辑商铺审核
    static updateShopsReview (shopsReview) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.updateShopsReview,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/review/ShopsReview/updateShopsReview', body);
    }

    //根据商铺审核Id删除商铺审核
    static deleteShopsReview (shopsReviewId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.deleteShopsReview,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/ShopsReview/deleteShopsReview',body);
    }

    //为了查看,根据商铺审核Id查询商铺审核，只加载ID 和 名称
    static findShopsReviewsWithIdNameById(shopsReviewId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findShopsReviewsWithIdNameById ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/ShopsReview/findShopsReviewsWithIdNameById',body);
    }

    //为了查看,根据商铺审核 名称 查询商铺审核，只加载ID 和 名称
    static findShopsReviewsWithIdNameByName(shopsReviewName) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findShopsReviewsWithIdNameByName ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/ShopsReview/findShopsReviewsWithIdNameByName',body);
    }


}
